package com.yanqu.road.server.cmd.peakstronghold;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.StrongholdWarProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.cmd.CrossUnionCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.peakstronghold.CrossPeakStrongholdActivityMgr;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.C_PEAK_STRONGHOLD_RELOAD_ACTIVITY, desc = "活动重载")
public class CrossPeakStrongholdReloadActivityCmd extends CrossUnionCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        StrongholdWarProto.CrossStrongholdReloadReqMsg req = StrongholdWarProto.CrossStrongholdReloadReqMsg.parseFrom(packet.getBytes());
        CrossPeakStrongholdActivityMgr.reloadActivityByGameServerNotify(req);
    }

    @Override
    public void sendData() {

    }
}
